package edu.cmu.cs.webapp.ioms.ui.providers.ingredient;

import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.Viewer;

import edu.cmu.cs.webapp.ioms.models.Ingredient;
import edu.cmu.cs.webapp.ioms.models.Product;

public class IngredientInforTableViewerContentProvider implements
		IStructuredContentProvider {

	@Override
	public Object[] getElements(Object parentElement) {
		if (parentElement instanceof Ingredient[]) {
			return (Ingredient[]) parentElement;
		}
		
		return null;
		
	}
	@Override
	public void dispose() {
		// TODO Auto-generated method stub

	}

	@Override
	public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
		// TODO Auto-generated method stub

	}

}
